<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});

Route::post('logo', 'Api\V1_0_0\CardLogoController@uploadCardLogo');
Route::post('uploadPic', 'Api\V1_0_0\CardLogoController@uploadPic');

Route::group([
    'prefix' => 'user',
    'namespace' => 'Web'
], function() {
    //注册
    Route::get('register', 'RegisterController@index');
    //隐私协议
    Route::get('privacy_agreement', 'RegisterController@privacyAgreement');
    //服务协议
    Route::get('server_agreement', 'RegisterController@serverAgreement');
});

Route::group([
    'prefix' => 'channel_qrcode',
    'namespace' => 'Web'
], function() {
    //下载app
    Route::get('download_app', 'ChannelQrcodeController@downloadApp');
});

Route::group([
    'prefix' => 'credit_card_handle',
    'namespace' => 'Web'
], function() {
    //web办卡申请
    Route::get('apply', 'CreditCardHandleController@apply');
    //web办卡申请提交
    Route::post('apply_submit', 'CreditCardHandleController@applySubmit');
});

//Route::get('test_im', 'Api\V1_8_8\TestApiVersionController@testIM');
//Route::get('test_aa', 'Api\V1_8_8\TestApiVersionController@subMerchantRegisterE');
//Route::get('make_area', 'Api\V1_9_1\TestApiVersionController@makeArea');
